<!--
 * @Author: 吴竹叶 2107206923@qq.com
 * @Date: 2023-09-27 15:22:32
 * @LastEditors: 吴竹叶 2107206923@qq.com
 * @LastEditTime: 2023-10-09 10:37:45
 * @FilePath: \BZ_JT_AnQuanHuanBaoGuanLiApp\src\views\staging\commom\evaluate\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="common-details">
    <customDetailsTopbar :title="title" :show-right-icon="true" flag @back="back" />
    <div class="d-scroll px-1">
      <detailsInfo :company-id="companyId" />
    </div>
  </div>
</template>
<script>
import detailsInfo from './components/detail.vue'

export default {
  components: {
    detailsInfo
  },
  data() {
    return {
      title: '',
      companyId: '',
      current: ''
    }
  },
  created() {
    const { current, companyId } = this.$route.query
    this.companyId = companyId || ''
    this.current = current || ''
  },
  mounted() {
    this.title = '企业' + this.current.substring(0, 2) + '智能综合评价'
  },
  methods: {
    // 返回列表
    back() {
      this.$router.push({
        path: '/staging/evaluate',
        query: { current: this.current }
      })
    }
  }
}
</script>
<style lang="scss"></style>
